package com.ym.b2b.buyer.dao;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.buyer.sqlbean.EmCBuyer;
import com.ym.b2b.buyer.sqlbean.SimpleEmCBuyer;
import com.zc.commons.base.Page;

public interface EmCBuyerDao {

    public Long searchPageEmCBuyerNum(EmCBuyer emCBuyer) throws DataAccessException;

    public Page<EmCBuyer> searchPageEmCBuyer(Page<EmCBuyer> page, EmCBuyer emCBuyer) throws DataAccessException;

    public void insertBuyer(EmCBuyer emCBuyer) throws DataAccessException;

    public void updateBuyer(EmCBuyer emCBuyer) throws DataAccessException;

    public EmCBuyer showEmCBuyerDetail(EmCBuyer emCBuyer) throws DataAccessException;

    /**
     * 获取简单的 采购商信息
     * 
     * @Title: showSimpleEmCBuyerDetail
     * @Description: TODO
     * @Param @param emCBuyer
     * @Param @return
     * @Param @throws DataAccessException
     * @Return EmCBuyer
     * @Throws
     */
    SimpleEmCBuyer showSimpleEmCBuyerDetail(EmCBuyer emCBuyer) throws DataAccessException;

    void deleteEmCBuyer(EmCBuyer emCBuyer) throws DataAccessException;

    /*
     * public List<EmCBuyer> searchEmCBuyer(EmCBuyer emCBuyer) throws DataAccessException;
     */
    void editMultipleEmCBuyersStatus(String buyerIdList);

    void deleteMultipleEmCBuyers(String buyerIdList);

}
